package com.sinping.qh.repository.mysql.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.sinping.qh.domain.auth.UserRole;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 刘庆沛
 * @since 2017-12-19
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {


    /**
     * 根据userId查询有效的用户角色关系
     * @param roleId
     * @return
     */
    List<UserRole> selectEffectiveUserRoleByRoleId(String roleId);

}
